package initialize

import (
	"github.com/exam/global"
	"github.com/winksai/utils/mysql"
	"github.com/winksai/utils/nacos"
)

func Mysql() {

	nacosConfig := nacos.GetConfig()
	config := nacosConfig.Mysql
	db := mysql.InitMysql(config.User, config.Password, config.Host, config.Database, config.Port)
	global.DB = db
}
